package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProjectStoreMapper;
import com.ruoyi.system.domain.ProjectStore;
import com.ruoyi.system.service.IProjectStoreService;

/**
 * 众筹参与表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-27
 */
@Service
public class ProjectStoreServiceImpl implements IProjectStoreService 
{
    @Autowired
    private ProjectStoreMapper projectStoreMapper;

    /**
     * 查询众筹参与表
     * 
     * @param projectUserId 众筹参与表主键
     * @return 众筹参与表
     */
    @Override
    public ProjectStore selectProjectStoreByProjectUserId(Long projectUserId)
    {
        return projectStoreMapper.selectProjectStoreByProjectUserId(projectUserId);
    }

    /**
     * 查询众筹参与表列表
     * 
     * @param projectStore 众筹参与表
     * @return 众筹参与表
     */
    @Override
    public List<ProjectStore> selectProjectStoreList(ProjectStore projectStore)
    {
        return projectStoreMapper.selectProjectStoreList(projectStore);
    }

    /**
     * 新增众筹参与表
     * 
     * @param projectStore 众筹参与表
     * @return 结果
     */
    @Override
    public int insertProjectStore(ProjectStore projectStore)
    {
        return projectStoreMapper.insertProjectStore(projectStore);
    }

    /**
     * 修改众筹参与表
     * 
     * @param projectStore 众筹参与表
     * @return 结果
     */
    @Override
    public int updateProjectStore(ProjectStore projectStore)
    {
        return projectStoreMapper.updateProjectStore(projectStore);
    }

    /**
     * 批量删除众筹参与表
     * 
     * @param projectUserIds 需要删除的众筹参与表主键
     * @return 结果
     */
    @Override
    public int deleteProjectStoreByProjectUserIds(Long[] projectUserIds)
    {
        return projectStoreMapper.deleteProjectStoreByProjectUserIds(projectUserIds);
    }

    /**
     * 删除众筹参与表信息
     * 
     * @param projectUserId 众筹参与表主键
     * @return 结果
     */
    @Override
    public int deleteProjectStoreByProjectUserId(Long projectUserId)
    {
        return projectStoreMapper.deleteProjectStoreByProjectUserId(projectUserId);
    }
}
